package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 综合站管理对象 merchant_management
 * 
 * @author Wubk
 * @date 2022-05-21
 */
@Data
@Accessors(chain = true)
@ApiModel("综合站管理")
@TableName("merchant_management")
public class MerchantManagement implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(name = "id", value = "综合站管理id")
    @TableId
    private Long id;

    /** 综合站名称 */
    @Excel(name = "综合站名称")
    @ApiModelProperty(name = "shopName", value = "综合站名称")
    private String shopName;

    /**
     * 站长姓名
     */
    @Excel(name = "站长姓名")
    @ApiModelProperty(name = "merchantName", value = "站长姓名")
    private String merchantName;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    @ApiModelProperty(name = "phone", value = "手机号")
    private String phone;

    /**
     * 积分
     */
    @Excel(name = "积分")
    @ApiModelProperty(name = "integral", value = "积分")
    private Long integral;

    /**
     * 类型
     */
    @Excel(name = "类型")
    @ApiModelProperty(name = "type", value = "类型")
    private String type;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "registerTime", value = "注册时间")
    private Date registerTime;

    /** 账号 */
    @ApiModelProperty(name = "merchantNumber", value = "账号")
    private String merchantNumber;

    /** 密码 */
    @ApiModelProperty(name = "merchantPassword", value = "密码")
    private String merchantPassword;

    /** 证件资料-营业执照 */
    @ApiModelProperty(name = "merchantBusinessLicense", value = "证件资料-营业执照")
    private String merchantBusinessLicense;

    /** 证件资料-身份证正面 */
    @ApiModelProperty(name = "merchantIdentityCardFront", value = "证件资料-身份证正面")
    private String merchantIdentityCardFront;

    /** 证件资料-身份证反面 */
    @ApiModelProperty(name = "merchantIdentityCardReverse", value = "证件资料-身份证反面")
    private String merchantIdentityCardReverse;

    /** 证件资料 */
    @ApiModelProperty(name = "merchantImg", value = "证件资料")
    private String merchantImg;

    /** 状态 */
    @ApiModelProperty(name = "status", value = "状态")
    private String status;

    /** 小程序码 */
    @ApiModelProperty(name = "miniProgramCode", value = "小程序码")
    private String miniProgramCode;

    /** 微信标识 */
    @ApiModelProperty(name = "openid", value = " 微信标识")
    private String openid;

    /** 创建人 */
    @ApiModelProperty(name = "createdBy", value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /** 创建时间 */
    @ApiModelProperty(name = "createdTime", value = "创建时间", notes = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updatedBy;

    @TableField(exist = false)
    private String password;

    /**
     * 更新时间
     */
    @ApiModelProperty(name = "updatedTime", value = "更新时间", notes = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.UPDATE)
    private Date updatedTime;

    @ApiModelProperty(name = "parentId", value = "父账号ID", notes = "子账号标识")
    private Long parentId;

    @ApiModelProperty(name = "userId", value = "用户ID")
    private Long userId;

    @ApiModelProperty(name = "roles", value = "角色")
    @TableField(exist = false)
    private List<String> roles;


    /** 经度 */
    @ApiModelProperty(name = "longitude", value = "经度")
    private Double longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(name = "latitude", value = "纬度")
    private Double latitude;

    /**
     * 详细地址
     */
    @ApiModelProperty(name = "merchantAddress", value = "详细地址", required = true)
    private String merchantAddress;
    @TableField(exist = false)
    @ApiModelProperty(name = "roleNames", value = "角色名称", required = true)
    private List<String> roleNames;

    /**
     * 开户人姓名
     */
    @Excel(name = "开户人姓名")
    @ApiModelProperty(name = "bankUserName", value = "开户人姓名")
    private String bankUserName;

    /**
     * 银行卡号
     */
    @Excel(name = "银行卡号")
    @ApiModelProperty(name = "bankNumber", value = "银行卡号")
    private String bankNumber;

    /**
     * 开户支行
     */
    @Excel(name = "开户支行")
    @ApiModelProperty(name = "bankName", value = "开户支行")
    private String bankName;

    @ApiModelProperty(name = "portrait", value = "头像")
    private String portrait;

    @ApiModelProperty(name = "poster", value = "海报")
    private String poster;

    @ApiModelProperty(name = "content", value = "推广内容")
    private String content;

    @ApiModelProperty(value = "海报原图片")
    private String originalPoster;
}
